import 'dart:async';

import 'package:build/build.dart';

class TestBuilder implements Builder {
  @override
  FutureOr<void> build(BuildStep buildStep) async {
    var inputId = buildStep.inputId;
    var contents = await buildStep.readAsString(inputId);
    await buildStep.writeAsString(inputId, '前缀\n${contents}');
  }

  @override
  // TODO: implement buildExtensions
  Map<String, List<String>> get buildExtensions => {
        '.dart': ['.dart.copyright']
      };
}
